<?php
/***********************************************************************
 * @package    IvanEngine
 * @subpackage Core
 * @author     Ivan <ivanzx@msn.com>
 * @created    2010-05-12
 ***********************************************************************/
if(defined("IVANENGINE_CORE_INTERFACE_OBJECT"))
	die("Redefinition macro in :".__FILE__."(".__LINE__.")");
define("IVANENGINE_CORE_INTERFACE_OBJECT", true);

require_once (dirname(__FILE__).'/Base.php');

class CObject extends CBase
{
	protected
		$m_name = "";
	
	public function __construct($name = 'undefined')
	{
		parent::__construct();
        $this->m_name   = $name;
	}
	
	public function __destruct()
	{
		parent::__destruct();
	}

	public function SetName($name)
	{
		$this->m_name	= $name;
	}
	
	public function GetName()
	{
		return $this->m_name;
	}
    
    public function __toString()
    {
        return $this->GetName();
    }
}

?>